﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebFormTest.WebHandler
{
    /// <summary>
    /// Index 的摘要说明
    /// </summary>
    public class Index : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string str = "[{\"SId\":\"2\",\"SName\":\"王二三\",\"SAge\":\"24\",\"SSex\":\"女\",\"SPhone\":\"13111111112\",\"SHead\":\"images/2016/6/20/0744a2a6-b833-44be-9c47-563f6085dda9.jpg\"},{\"SId\":\"3\",\"SName\":\"王大三\",\"SAge\":\"24\",\"SSex\":\"男\",\"SPhone\":\"13111111111\",\"SHead\":\"images/2016/6/20/8f41ab26-5cb3-45f2-a5a3-6cd64493bd93.jpg\"},{\"SId\":\"7\",\"SName\":\"唐春阳\",\"SAge\":\"20\",\"SSex\":\"男\",\"SPhone\":\"18111111111\",\"SHead\":\"\"},{\"SId\":\"8\",\"SName\":\"元泊位\",\"SAge\":\"20\",\"SSex\":\"男\",\"SPhone\":\"18111111111\",\"SHead\":\"\"},{\"SId\":\"9\",\"SName\":\"舍长\",\"SAge\":\"20\",\"SSex\":\"男\",\"SPhone\":\"18111111111\",\"SHead\":\"\"},{\"SId\":\"12\",\"SName\":\"唐蠢\",\"SAge\":\"20\",\"SSex\":\"男\",\"SPhone\":\"18111111111\",\"SHead\":\"\"},{\"SId\":\"13\",\"SName\":\"杨幂\",\"SAge\":\"28\",\"SSex\":\"女\",\"SPhone\":\"12345678912\",\"SHead\":\"images/2016/6/20/2e15a96b-48b5-4e6b-bbdc-c8006d4e6677.jpg\"},{\"SId\":\"14\",\"SName\":\"孙悟空\",\"SAge\":\"20\",\"SSex\":\"男\",\"SPhone\":\"88888888888\",\"SHead\":\"/images/2016/6/20/ab628292-7cab-42e4-b548-2d0c3cacab01.jpg\"},{\"SId\":\"17\",\"SName\":\"悟天克斯\",\"SAge\":\"19\",\"SSex\":\"男\",\"SPhone\":\"18730845566\",\"SHead\":\"/images/2016/6/20/f8116781-ea83-4edc-a48a-18b95a5ee629.jpg\"},{\"SId\":\"18\",\"SName\":\"林允儿\",\"SAge\":\"23\",\"SSex\":\"女\",\"SPhone\":\"12345698712\",\"SHead\":\"/images/2016/6/20/e5b5e681-e6cb-4c3b-ac81-2e493b58c6db.jpg\"},{\"SId\":\"19\",\"SName\":\"范冰冰\",\"SAge\":\"23\",\"SSex\":\"女\",\"SPhone\":\"18730845566\",\"SHead\":\"/images/2016/6/20/9c206701-f9aa-4768-84fd-67657c669b67.jpg\"}]";
            context.Response.Write(str);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}